package co.fitstart.entity.order;

import com.demo2do.core.utils.Alias;

/**
 * 费用明细
 * 
 * @author haiyan_xiao
 *
 */
@Alias("expenseType")
public enum ExpenseType {
	
	/** 健身费 */
	FIT("fit", "健身费"),
	
	/** 服务费 */
	SERVICE("service", "服务费"),
	
	/** 咨询费 */
	CONSULT("consult", "咨询费");
	
	private String alias;
	
	private String description;
	
	ExpenseType(String alias, String description) {
		this.alias = alias;
		this.description = description;
	}
	
	public static ExpenseType aliasOf(String alias) {
		for(ExpenseType expenseType : ExpenseType.values()) {
			if(expenseType.getAlias().equalsIgnoreCase(alias)) {
				return expenseType;
			}
		}
		return null;
	}
	
	public String getAlias() {
		return alias;
	}
	
	public String getDescription() {
		return description;
	}
}
